A$="Loop : M 0,100,10 ; Jump Loop" : Amal 1,A$ : Amal On 1
Wait 10 : Amal Off 1
A$="Anim 1,(18,5)(19,5)(20,20)(21,7)(22,7)(23,7)(14,7)(13,7)(12,7)(11,7)" : Amal 1,A$ : Amal On 1
Wait 79
'
Timer=0
FACINGL=1
'
LP:
VV=Timer/50
BLINK=0
Repeat :
'
If BLINK=0 and Timer/50=VV+4 Then BLINK=1 : A$="Anim 0,(7,80)(8,6)(9,6)(10,6)(9,5)(8,6)" : Amal 1,A$ : Amal On 1
'
L=0 : R=0 : U=0 : D=0
'
If Jleft(1) Then FACINGL=1 : FACINGR=0 : L=1 : Gosub A_LEFT : Goto LP
If Jright(1) Then FACINGR=1 : FACINGL=0 : R=1 : Gosub A_RIGHT : Goto LP
If Jup(1) Then U=1 : Gosub A_UP : Goto LP
If Jdown(1) Then D=1 : Gosub A_DOWN : Goto LP
If Fire(1) Then Goto ST
'
Until WIN=1
'
'------
A_LEFT:
A$="Anim 0,(4,3)(5,3)(6,3) ; Loop : M -1,0,1 ; Jump Loop" : Amal 1,A$ : Amal On 1
Repeat :
Until Joy(1)<>4 : Amal Off 1
Return
'
A_RIGHT:
A$="Anim 0,(1,3)(2,3)(3,3) ; Loop : M 1,0,1 ; Jump Loop" : Amal 1,A$ : Amal On 1
Repeat :
Until Joy(1)<>8 : Amal Off 1
Return
'
A_UP:
If FACINGL=1 Then Amal 1,"Anim 1,(3,1)(25,50)" : Amal On 1
If FACINGR=1 Then Amal 1,"Anim 1,(6,1)(25,50)" : Amal On 1
A$="Loop : M 0,-10,2 ; M 0,-10,3 ; M 0,-10,4 : M 0,-10,5 ;"
A$=A$+"M 0,10,5 ; M 0,10,4 ; M 0,10,3 : M 0,10,2 ; Jump Loop"
Amal 1,A$ : Amal On 1
Repeat :
Until Joy(1)<>1 : Amal Off 1 : Return
Return
'
A_DOWN:
A$="Anim 1,(11,3)(12,3)(13,3)(14,3)" : Amal 1,A$ : Amal On 1
Repeat :
Until Joy(1)<>2 : Amal Off 1
RAT:
If Joy(1)=6 Then A$="Anim 0,(14,3)(15,3)(16,3) ; Loop : M -1,0,1 ; Jump Loop" : Amal 1,A$ : Amal On 1 : Repeat : Until Joy(1)<>6 : Amal Off 1 : Goto RAT
If Joy(1)=10 Then A$="Anim 0,(16,3)(15,3)(14,3) ; Loop : M 1,0,1 ; Jump Loop" : Amal 1,A$ : Amal On 1 : Repeat : Until Joy(1)<>10 : Amal Off 1 : Goto RAT
If Joy(1)=0 Then A$="Anim 1,(14,3)(13,3)(12,3)(11,3)" : Amal 1,A$ : Amal On 1 : Return